package com.googlecode.garbagecan.rmistudy.helloworld;

import java.rmi.Naming;

public class HelloWorldClient {
	public static void main(String[] args) {
		try {
			//HelloWorld helloworld = (HelloWorld) Naming.lookup("HelloWorld");
			HelloWorld helloworld = (HelloWorld) Naming.lookup("rmi://localhost:1099/HelloWorld");
			System.out.println(helloworld.sayHelloWorld());
		} catch (Exception ex) {
			ex.printStackTrace();
		}
	}
}
